﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Raw1;

namespace UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void SubscribeFileSystem()
        {
            MonitorManager manager = new MonitorManager();
            IMonitor fsMonitor = MonitorFactory.CreateMonitor(Monitors.FileSystem);
            manager.Subscribe(fsMonitor);
            manager.Start();
            //IMonitor dbMonitor = MonitorFactory.CreateMonitor(Monitors.DatabaseSystem);
            //manager.Subscribe(dbMonitor);
            if (manager.IsRunning)
            {
                //
            }
            else
            { 
                //
            }
        }


    }
}
